package pl.edu.pk.mech.kkbus.model;

import static pl.edu.pk.mech.kkbus.staticstrings.DepartureProperty.*;

import java.io.Serializable;

import com.google.appengine.api.datastore.Entity;

public class DepartureTime extends Pojo implements Serializable{

	private static final long serialVersionUID = -395782318799769952L;
	   
		private String time;
	    private String attributes;
	    private String order;
	    private String idBusStop;
	    
	    public DepartureTime() {}
	    
	    public DepartureTime(Entity entity) {
	    	this.id = entity.getKey().getId();
	    	this.time = (String) entity.getProperty(DEP_TIME);
	    	this.attributes = (String) entity.getProperty(DEP_ATTRIBUTES);
	    	this.order = (String) entity.getProperty(DEP_ORDER);
	    	this.idBusStop = (String) entity.getProperty(DEP_ID_BUS_STOP);
	    }

	    public DepartureTime(String time, String attributes, String order) {
	        this.time = time;
	        this.attributes = attributes;
	        this.order = order;
	    }

	    public String getTime() {
	        return time;
	    }

	    public void setTime(String time) {
	        this.time = time;
	    }

	    public String getAttributes() {
	        return attributes;
	    }

	    public void setAttributes(String attributes) {
	        this.attributes = attributes;
	    }

		public String getOrder() {
			return order;
		}

		public void setOrder(String order) {
			this.order = order;
		}

		public String getIdBusStop() {
			return idBusStop;
		}

		public void setIdBusStop(String idBusStop) {
			this.idBusStop = idBusStop;
		}
}
